/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 24, 2009 11:25:49 PM $
 *
 * Author: Eric Yang
 * Date  : Aug 24, 2009 11:25:49 PM
 *
 */
package com.gooex.service.organization;

import java.util.List;
import org.c4j.system.web.exception.ServiceException;

import com.gooex.domain.organization.Address;
import com.gooex.domain.organization.User;

/**
 * @author Eric Yang
 * @version 1.0
 */
public interface IAddressManager {
	/***/
	public Address getAddress(String id);

	/***/
	public List<Address> getUserAddresses(User user);

	public long getUserAddressNum(User user);

	/***/
	public void saveAddress(Address address);

	/***/
	public void removeAddress(Address address) throws ServiceException;

	/**
	 * 在指定的用户地址薄中查找对应的地址。
	 */
	public Address getUserAddresses(String addressId, User user);

}
